package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.entity.NursingProject;
import com.zzyl.entity.NursingProjectPlan;
import com.zzyl.vo.NursingPlanVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingPlanMapper {

    /**
     * 查询所有护理计划
     * @return
     */
    List<NursingPlan> getAll();

    /**
     * 根据id查询护理计划
     * @param id
     * @return
     */
    NursingPlanVO getById(Long id);

    void insertPlan(NursingPlan nursingPlan);

    void insertProjectPlan(List<NursingProjectPlan> nursingProjectPlans);

    List<NursingPlanVO> getByPage(String name, Integer status);

    Integer getCount(Long id);
}
